<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = '学生登录';

$form = ActiveForm::begin([
    'id' => 'login-form',
    'options' => ['class' => 'form-horizontal'],
]) 


?>


<div class="row">
	<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><?=Html::a('教师登录',Yii::getAlias ( '@web' ).'/personinfo/index',['class'=>"btn btn-default"])?> <?=Html::a('学生登录',Yii::getAlias ( '@web' )."/front/index",['class'=>'btn btn-success'])?></h3>
            </div>
            <div class="panel-body">
               <?php if(\Yii::$app->getSession()->getFlash('warning')!=null) :?>
					<?php echo \Yii::$app->getSession()->getFlash('warning');?>
					<?php endif;?>
					
					
				    <?= $form->field($model, 'stu_id',['inputOptions'=>['class'=>'form-control my-login-input']])->label('用户名',['class'=>'my-login-label']); ?>
				    <?= $form->field($model, 'password',['inputOptions'=>['class'=>'form-control my-login-input']])->passwordInput()
				    			->label('密码'."(". Html::a(
                                    '忘记密码',
                                    ['#'],
                                    ['tabindex' => '5',
                                    	'onclick'=>"fun()"
				    				]
                                ).")",['class'=>'my-login-label']) ?>
					
				    <?= Html::submitButton(
                    Yii::t('user', 'Sign in'),
                    ['class' => 'btn btn-primary btn-block', 'tabindex' => '4']
                ) ?>
                <?= Html::resetButton(
                    "重置",
                    ['class' => 'btn btn-primary btn-block', 'tabindex' => '4']
                ) ?>
				<?php ActiveForm::end() ?>
            </div>
        </div>
        
    </div>
        
</div>

<style type="text/css">
.my-login-input {
	margin: 0 15px;
    width: 328px;
}


.my-login-label {
	margin-left: 15px;
}

</style>


<script>

function fun(){
	alert("请联系学院学生工作组");
}

</script>
